#ifndef __HTTPMESSAGEPOST_H
#define __HTTPMESSAGEPOST_H

#include <types.h>

#include <HTTPMessage.h>
#include <HTTP.h>

class HTTPMessagePost: public HTTPMessage
{
protected:
    char hdrSpace[2048];
    char varSpace[2048];
    int contentLength;
    int nVars;
    
public:
    HTTPMessagePost(char *url, int protocolVersion=HTTP_VERSION_1_1);
    ~HTTPMessagePost();
    
    void addHdr(char *hdr, char *value);
    void addVar(char *var, char *value);
    void toString(char *dest, int bufsize);
};

#endif
